<!--#layout("/common/layout.html",{"jsBase":"/js/customer/member/"}){ -->
<style>
    .laytable-cell-1-wxPicurl {
        height: 100%;
        width: 100%;
    }
    .layui-table-cell{
        height: 75px;
        line-height: 75px;
    }
</style>
<div class="layui-row" xmlns:layui="http://www.w3.org/1999/xlink">
    <form id="searchForm" class="layui-form layui-form-pane">
        <div class="layui-row">
            <input type="hidden" name="customerId" value="${customerId}">
            <div class="layui-form-item">
                <div class="layui-inline">

                    <label class="layui-form-label">用户姓名</label>
                    <div class="layui-input-inline">
                        <input type="text" name="customerName" autocomplete="off" class="layui-input">
                    </div>

                    <label class="layui-form-label">手机号</label>
                    <div class="layui-input-inline">
                        <input type="text" name="sourceId" autocomplete="off" class="layui-input">
                    </div>

                    <label class="layui-form-label">注册时间</label>
                    <div class="layui-input-inline">
                        <div class="date-range-pick">
                            <input type="text" name="registerTimeQuery" autocomplete="off" class="layui-input">
                        </div>
                    </div>


                </div>
                <div class="layui-inline">
                    <button class="layui-btn layui-btn-normal" type="button" id="searchFormSearch">搜索</button>
                    <button class="layui-btn" type="button" id="clear">清空</button>
                    <button class="layui-btn layui-btn-primary" type="button" id="show">展开</button>
                </div>
            </div>
        </div>
    </form>
</div>

<div class="layui-btn-group">
    <layui:accessButton function="customer.member.status" action="status">设置状态</layui:accessButton>
    <layui:accessButton function="customer.customerInfo.login" action="login">PC模拟登陆</layui:accessButton>
    <layui:accessButton function="customer.customerInfo.login" action="h5login">H5模拟登陆</layui:accessButton>

</div>

<table id="customerInfoTable" lay-filter="customerInfoTable"></table>

<!--#} -->
<script type="text/html" id="imgTpl">
    <img src="{{ d.avatar }}">
</script>
<script>
    layui.use(['index','laydate'], function () {
        var index = layui.index;
        var laydate = layui.laydate;
        var date  = new Date();
        var dateYear = date.getFullYear();
        laydate.render({
            elem: '#choiceYear'
            ,type: 'year'
            ,max: dateYear
        });
        var flag = false;

        $(".show-div").hide();
        $("#clear").hide();
        $("#show").click(function(){
            if(flag){
                flag = false;
                $(".show-div").hide();
                $("#clear").hide();
                $("#show").text('展开');
            }else{
                flag = true;
                $("#searchForm")[0].reset();
                $(".show-div").show();
                $("#clear").show();
                $("#show").text('收起');
            }
        });
        $("#clear").click(function(){
            $("#searchForm")[0].reset();
        });

        index.init();
    });
</script>
